const app =  getApp();

Page({
  data:{
    shoplist:[],
    dialogShow: false,
    buttons: [{text: '取消'}, {text: '确认订单'}],
  },
    onLoad: function(){
        this.setData({
            slideButtons: [{
              type: 'warn',
              text: '删除', 
            }],
            shoplist:app.globalData.car
        });
       
    },
    slideButtonTap(e) {
      // 删除当前条目
        console.log('slide button tap', e)
    }
,
  tapDialogButton(e) {
    if(e.detail.index == 1){

    }
    this.setData({
        dialogShow: false,
        showOneButtonDialog: false
    })
  },
createOrder(e){
    
    this.setData({
        dialogShow: true
    })

   

}

});
